package com.crm.service.impl.finishOrderProductManager;

import com.crm.dao.mapper.finishOrderProduct.AnewSendProductMapper;
import com.crm.dao.mapper.returnMoney.AnewSendProductCustomMapper;
import com.crm.model.entity.finishOrderProduct.AnewSendProduct;
import com.crm.service.finishOrderProductManager.AnewSendFinishProductDbService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @Author:chaifuyou
 * @Date: 2021/8/6 17:23
 */
@Service
public class AnewSendFinishProductDbServiceImpl implements AnewSendFinishProductDbService {

    @Autowired
    private AnewSendProductMapper anewSendFinishProductMapper;

    @Autowired
    private AnewSendProductCustomMapper anewSendProductCustomMapper;


    /**
     * 新增补发产品记录
     * @param anewSendProduct
     */
    @Override
    public void insertAnewSendFinishProductLog(AnewSendProduct anewSendProduct) {
        anewSendFinishProductMapper.insertSelective(anewSendProduct);
    }

    /**
     * 修改补发产品记录
     * @param anewSendProduct
     */
    @Override
    public void updateAnewSendFinishProduct(AnewSendProduct anewSendProduct) {
        anewSendProductCustomMapper.updateAnewSendFinishProduct(anewSendProduct);
    }
}
